package com.leng.asynchronous.config;


import com.leng.common.constant.Constants;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitConfig {

    @Bean
    public Queue helloQueue(){
        return new Queue("myQueue");
    }

    @Bean
    public Queue LoginMessage(){
        return new Queue(Constants.LOGIN_ASYNCHRONOUS) ;
    }
}
